<template>
  <p>电影{{ $route.params.id }}页面</p>
  <p>电影{{ id }}页面</p>
  <hr />
  <button @click="goBack">后退</button>
</template>
<script setup>
const props = defineProps({
  id: String,
});
import { useRouter } from "vue-router";
const router = useRouter();
const goBack = () => {
  router.go(-1);
};
</script>
